package com.ciko.code.bean;

/**
 * Created by ciko on 2015/11/22.
 */
public class User {

  /**
     * createTime : 2015-11-18 10:29:57
     * status : 0
     * officesNo : 008
     * enterpriseId : 10000121
     * userRole : 0
     * staffLevelMark : null
     * password : e10adc3949ba59abbe56e057f20f883e
     * userBirthday : 1990-11-23
     * departmentNo : 000
     * id : 4
     * adAccount : bbb
     * token : 7ac45dac-0b2a-472b-a957-998b05996ac2
     * nickName : chen1
     * userNo : 222
     * userInfoId : null
     * staffName : 林肯
     * userSex : 0
     * hzlqswUserInfoDto : null
     * account : 15868145575
     * branchNo : 330100
     * modifyTime : 2015-11-23 17:17:28
     * userHead : /tb/upload/headimage/56999dae-942d-4796-b955-bbdc881edfa6.png
     * key : HOvN%)8F
     * accId : 15868145575678
     */

    private String createTime;
    private int status;
    private String officesNo;
    private int enterpriseId;
    private String userRole;
    private Object staffLevelMark;
    private String password;
    private String userBirthday;
    private String departmentNo;
    private int id;
    private String adAccount;
    private String adPassword;
    private String token;
    private String nickName;
    private String userNo;
    private Object userInfoId;
    private String staffName;
    private String userSex;
    private Object hzlqswUserInfoDto;
    private String account;
    private String branchNo;
    private String modifyTime;
    private String userHead;
    private String key;
    private String accId;
    private String userPositionMark;

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setOfficesNo(String officesNo) {
        this.officesNo = officesNo;
    }

    public void setEnterpriseId(int enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    public void setStaffLevelMark(Object staffLevelMark) {
        this.staffLevelMark = staffLevelMark;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setUserBirthday(String userBirthday) {
        this.userBirthday = userBirthday;
    }

    public void setDepartmentNo(String departmentNo) {
        this.departmentNo = departmentNo;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setAdAccount(String adAccount) {
        this.adAccount = adAccount;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public void setUserInfoId(Object userInfoId) {
        this.userInfoId = userInfoId;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public void setHzlqswUserInfoDto(Object hzlqswUserInfoDto) {
        this.hzlqswUserInfoDto = hzlqswUserInfoDto;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public void setBranchNo(String branchNo) {
        this.branchNo = branchNo;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public void setUserHead(String userHead) {
        this.userHead = userHead;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setAccId(String accId) {
        this.accId = accId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public int getStatus() {
        return status;
    }

    public String getOfficesNo() {
        return officesNo;
    }

    public int getEnterpriseId() {
        return enterpriseId;
    }

    public String getUserRole() {
        return userRole;
    }

    public Object getStaffLevelMark() {
        return staffLevelMark;
    }

    public String getPassword() {
        return password;
    }

    public String getUserBirthday() {
        return userBirthday;
    }

    public String getDepartmentNo() {
        return departmentNo;
    }

    public int getId() {
        return id;
    }

    public String getAdAccount() {
        return adAccount;
    }

    public String getToken() {
        return token;
    }

    public String getNickName() {
        return nickName;
    }

    public String getUserNo() {
        return userNo;
    }

    public Object getUserInfoId() {
        return userInfoId;
    }

    public String getStaffName() {
        return staffName;
    }

    public String getUserSex() {
        return userSex;
    }

    public Object getHzlqswUserInfoDto() {
        return hzlqswUserInfoDto;
    }

    public String getAccount() {
        return account;
    }

    public String getBranchNo() {
        if (branchNo == null) {
            branchNo = "";
        }
        return branchNo;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public String getUserHead() {
        return userHead;
    }

    public String getKey() {
        return key;
    }

    public String getAccId() {
        return accId;
    }

    public int getUserPositionMark() {
        if (userPositionMark.equals("")) {
            userPositionMark = "9999";
        }
        return Integer.valueOf(userPositionMark);
    }

    public void setUserPositionMark(String userPositionMark) {
        this.userPositionMark = userPositionMark;
    }

    @Override
    public String toString() {
        return "User{" +
                "createTime='" + createTime + '\'' +
                ", status=" + status +
                ", officesNo='" + officesNo + '\'' +
                ", enterpriseId=" + enterpriseId +
                ", userRole='" + userRole + '\'' +
                ", staffLevelMark=" + staffLevelMark +
                ", password='" + password + '\'' +
                ", userBirthday='" + userBirthday + '\'' +
                ", departmentNo='" + departmentNo + '\'' +
                ", id=" + id +
                ", adAccount='" + adAccount + '\'' +
                ", token='" + token + '\'' +
                ", nickName='" + nickName + '\'' +
                ", userNo='" + userNo + '\'' +
                ", userInfoId=" + userInfoId +
                ", staffName='" + staffName + '\'' +
                ", userSex='" + userSex + '\'' +
                ", hzlqswUserInfoDto=" + hzlqswUserInfoDto +
                ", account='" + account + '\'' +
                ", branchNo='" + branchNo + '\'' +
                ", modifyTime='" + modifyTime + '\'' +
                ", userHead='" + userHead + '\'' +
                ", key='" + key + '\'' +
                ", accId='" + accId + '\'' +
                '}';
    }

    public String getAdPassword() {
        return adPassword;
    }

    public void setAdPassword(String adPassword) {
        this.adPassword = adPassword;
    }
}
